Skip to content

chore: update peerDependency ⛱︎ require @tanstack/react-query@^5.80.0 due to interface changes#342

Merged
radist2s merged 11 commits into
mainfrom
feat/enchanced-new-tanstack-querysupport
Jun 7, 2025
Merged

chore: update peerDependency ⛱︎ require @tanstack/react-query@^5.80.0 due to interface changes#342
radist2s merged 11 commits into
mainfrom
feat/enchanced-new-tanstack-querysupport

Conversation

@radist2s

@radist2s radist2s commented Jun 7, 2025

Copy link
Copy Markdown
Collaborator

BREAKING CHANGE: Updated peer dependency for @tanstack/react-query to ^5.80.0 in all relevant packages.

Reason

The interface UseSuspenseInfiniteQueryOptions in @tanstack/react-query changed its parameter structure starting from version 5.80.0. Supporting older versions is no longer possible or practical.

Breaking Changes

  • Projects using versions of @tanstack/react-query older than 5.80.0 will no longer be compatible.

Motivation

This change simplifies dependency management and ensures compatibility with the latest features and fixes in TanStack Query.

Additional Context

The main reason for this breaking change is that the interface UseSuspenseInfiniteQueryOptions from the @tanstack/react-query package has changed. Previously, this interface had six parameters, but its structure was updated in version 5.80.0. Supporting older versions would require maintaining compatibility with the outdated interface, which is no longer practical.

@changeset-bot

changeset-bot Bot commented Jun 7, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 58bb1d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@openapi-qraft/tanstack-query-react-types Minor
@openapi-qraft/react Minor
@openapi-qraft/tanstack-query-react-plugin Minor
@openapi-qraft/cli Minor
@openapi-qraft/plugin Minor
@openapi-qraft/openapi-typescript-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@radist2s radist2s force-pushed the feat/enchanced-new-tanstack-querysupport branch 3 times, most recently from 8bfb206 to de451bc Compare June 7, 2025 12:44
@radist2s radist2s force-pushed the feat/enchanced-new-tanstack-querysupport branch 2 times, most recently from b8fee3b to 3ef05cf Compare June 7, 2025 13:33
@radist2s radist2s marked this pull request as ready for review June 7, 2025 13:41
@radist2s radist2s changed the title chore: enhanced new TanStack Query Support chore: update peerDependency: require @tanstack/react-query@^5.80.0 due to interface changes Jun 7, 2025
@radist2s radist2s changed the title chore: update peerDependency: require @tanstack/react-query@^5.80.0 due to interface changes chore: update peerDependency - require @tanstack/react-query@^5.80.0 due to interface changes Jun 7, 2025
@radist2s radist2s changed the title chore: update peerDependency - require @tanstack/react-query@^5.80.0 due to interface changes chore: update peerDependency ⛱︎ require @tanstack/react-query@^5.80.0 due to interface changes Jun 7, 2025
@radist2s radist2s force-pushed the feat/enchanced-new-tanstack-querysupport branch 3 times, most recently from 1bf4e25 to 454eb8d Compare June 7, 2025 13:50
radist2s added 5 commits June 7, 2025 19:06
…initeQueryOptions` for the TanStack Query prior to 5.80.0"

This reverts commit 05ab0ca.
BREAKING CHANGE: Due to the fact that by default, the latest version of TanStack Query will always be installed, it doesn't make sense to support the old version of TanStack Query, since the new one doesn't have any breaking changes compared to the previous ones.
…o 5.80.0

BREAKING CHANGE: Due to the fact that by default, the latest version of TanStack Query will always be installed, it doesn't make sense to support the old version of TanStack Query, since the new one doesn't have any breaking changes compared to the previous ones.
….80.0` due to breaking changes in the `UseSuspenseInfiniteQueryOptions` interface.
@radist2s radist2s force-pushed the feat/enchanced-new-tanstack-querysupport branch from 454eb8d to 6419f64 Compare June 7, 2025 15:07
…t of support for TanStack Query versions prior to 5.80.0
@radist2s radist2s merged commit 887aba7 into main Jun 7, 2025
13 checks passed
@radist2s radist2s deleted the feat/enchanced-new-tanstack-querysupport branch June 7, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant